package fule.com.playandroidkotlin.ui.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import fule.com.playandroidkotlin.R
import fule.com.playandroidkotlin.ui.model.HotKeyModel

/**
 * @author:      njb
 * @date:        2019/10/24 16:04
 * @description: 热门适配器
 */
class HotSearchAdapter (data: List<HotKeyModel>?):BaseQuickAdapter<HotKeyModel, BaseViewHolder>(R.layout.item_hot_search,data){
    override fun convert(helper: BaseViewHolder?, item: HotKeyModel?) {
        item?.let {
            helper?.setText(R.id.tv_search,item.name)
        }
    }
}